package com.ht.managermentserver.sysenum;

/**
 * Copyright (c) 2020, czy. All rights reserved.
 *
 * @author czy
 * @createdate 2020-05-25 11:28:29
 * @updatedate 2020-05-25 11:28:29
 */
public enum ErrorCode {

  /** 错误 */
  ERROR(1000, "错误"),
  /** 成功 */
  SUCCESS(0, "成功"),
  /** 未登陆 */
  NOLOGIN(403, "未登陆"),
  /** 系统错误 */
  E500(500, "系统错误"),

  /** 页面为找到 */
  E404(404, "页面未找到");

  private Integer codeVal;

  private String codeDesc;

  ErrorCode(final Integer codeVal, final String codeDesc) {
    this.setCodeVal(codeVal);
    this.setCodeDesc(codeDesc);
  }

  /** @return the codeDesc */
  public String getCodeDesc() {
    return codeDesc;
  }

  /** @param codeDesc the codeDesc to set */
  public void setCodeDesc(final String codeDesc) {
    this.codeDesc = codeDesc;
  }

  /** @return the codeVal */
  public Integer getCodeVal() {
    return codeVal;
  }

  /** @param codeVal the codeVal to set */
  public void setCodeVal(final Integer codeVal) {
    this.codeVal = codeVal;
  }
}
